package com.hdsx.restful.ygzt.ggdqctcbyc.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hdsx.ao.base.BaseOpearte;
import com.hdsx.restful.ygzt.ggdqctcbyc.bean.Ggdqctcbyc;
import com.hdsx.restful.ygzt.ggdqctcbyc.mapper.GgdqctcbycMapper;
import com.hdsx.restful.ygzt.ggdqctcbyc.service.GgdqctcbycServer;
/**
 * ggdqctcbycServer实现类
 *
 */
@Service
public class GgdqctcbycServerImpl extends BaseOpearte<Ggdqctcbyc> implements GgdqctcbycServer {

	public GgdqctcbycServerImpl() {
		super("GIS_GGDQCTCBYC");
	}

	@Resource(name="ggdqctcbycMapper")
	private GgdqctcbycMapper mapper;

	@Override
	public int queryCount(String xzqhbm, String zcmc, String lxdh) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("name", zcmc);
		parameter.put("lxbm", lxdh);
		return mapper.queryCount(parameter);
	}

	@Override
	public List<Ggdqctcbyc> queryList(String xzqhbm, String zcmc, String lxdh,
			int begin, int end) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("name", zcmc);
		parameter.put("lxdh", lxdh);
		parameter.put("begin", begin);
		parameter.put("end", end);
		List<Ggdqctcbyc> lists=mapper.queryList(parameter);
		return lists;
	}

	@Override
	public Ggdqctcbyc queryById(String id) {
		return mapper.selectById(id);
	}
	
	@Override
	public List<String> selectName(String name){
		return mapper.selectName(name);
	}

}
